<template>
  <div class="banner">
     <Header>
				<div class="title"><span class="title-span">个人信息</span></div>
				<div class="back" @click="$router.back()"><van-icon name="arrow-left" /></div>
		</Header>
  <!-- </div> -->
  
    <van-form @submit="onSubmit">
  <van-cell
   title="头像" 
   is-link
  />
  <van-cell title="昵称" is-link />
  <van-cell title="性别" is-link />
  <van-cell title="生日" is-link />
  <div style="margin: 16px;">
    <van-button round block type="info" class="footer-item" native-type="submit">确定</van-button>
  
  </div>
</van-form>
  </div>
</template>

<script>
import { Toast,NavBar,Form, Field,Cell, CellGroup,Icon } from 'vant';

console.log(NavBar)
console.log(Form);
console.log(Field);
console.log(Cell);
console.log(CellGroup);
console.log(Icon)



export default {
  data(){
    return {
      username:"",
      password:""
    }
  },
  components:{
    [NavBar.name]:NavBar,
    [Form.name]:Form,
    [Field.name]:Field,
    [Cell.name]:Cell,
    [CellGroup.name]:CellGroup,
    [Icon.name]:Icon
 
  },
  methods: {
    onClickLeft() {
      Toast('');
    },
   
    onSubmit(values) {
      console.log('submit', values);
    },
  },
}
</script>

<style lang="less">
.title {
  text-align: center;
  background-color: green;
  height: 45px;
}
.title-span{
  font-size: 20px;
  top: -25px;
  color: white;
  position: absolute;
  margin-top: 30px;
  right: 170px;
}
.back {
  position: absolute;
  margin-top: -30px;
  left: 10px;
}
 .banner-item {
  background-color: green;
 }
 .footer-item {
  background-color: green;
 }
</style>